package com.school.repair.service;

import com.school.repair.dao.EquipmentPicDao;
import com.school.repair.entity.EquipmentPic;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

public class EquipmentPicService {
    @Resource
    EquipmentPicDao epd;

    public int add(EquipmentPic equipmentPic) {
        return epd.add(equipmentPic);
    }

    public List<EquipmentPic> search(int equipmentId) {
        return epd.search(equipmentId);
    }

    public EquipmentPic getEquipmentPic(@Param("id")long id){
        return epd.getEquipmentPic(id);
    }

    public void delPic(long equipmentId) {
        epd.delPic(equipmentId);
    }
}
